import LayoutDefault from 'src/component/layout/LayoutDefault';
import internetCommercialBankRoutes from './internetCommercialBank.routes';
import { Ld } from './util';

const Login = Ld(() => import(/* webpackChunkName: "Login" */ 'src/pages/login/Login'));
const Page404 = Ld(() => import(/* webpackChunkName: "Page404" */ 'src/pages/common/Page404'));
const routerData = function () {
  return [
    // 注册页面
    {
      path: 'login',
      element: <Login />,
    },
    {
      path: '',
      isLayout: true,
      children: [
        {
          index: true,
          element: <LayoutDefault />,
        },
      ],
    },
    ...internetCommercialBankRoutes(),
    {
      path: '*',
      element: <Page404 />,
    },
  ];
};
export default routerData;
